<?php
declare (strict_types=1);

namespace app\middleware;

class SetHeaders
{
    public function handle($request, \Closure $next)
    {
        header('Access-Control-Allow-Origin: ' . env('base_url'));
        return $next($request);
    }
}
